#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
using namespace std;

struct Node {
    int date;
    Node* next;
};

Node* CreateNode(int d) {
    Node* p = new Node;
    p->date = d;
    p->next = nullptr;
    return p;
}

int main()
{
    Node* p1 = CreateNode(1);
    Node* p2 = CreateNode(2);
    Node* p3 = CreateNode(3);
    Node* p4 = CreateNode(4);
    Node* p5 = CreateNode(5);

    p1->next = p2;
    p2->next = p3;
    p3->next = p4;

    Node* head = p1;

    return 0;
}
